package com.lanchetech.dao;
import com.lanchetech.bean.request.PageReq;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.lanchetech.entity.DiseaseReportHistory;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DiseaseReportHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DiseaseReportHistory record);

    int insertSelective(DiseaseReportHistory record);

    DiseaseReportHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DiseaseReportHistory record);

    int updateByPrimaryKey(DiseaseReportHistory record);

    List<DiseaseReportHistory> findAllPage(PageReq req);

    List<DiseaseReportHistory> findLatestTwoByUserId(@Param("userId")Long userId);

    List<DiseaseReportHistory> findLatestFiveByUserId(@Param("userId")Long userId);




}